package com.atm.service.impl;

import com.atm.entity.Card;
import com.atm.entity.CreditCard;

public class SimpleFactory {
	 
	    public static Card createCard(String CardType){  
	        
	   
			Card c=null;
			if("CreditCard".equalsIgnoreCase(CardType))  
	        	c=new CreditCard();  
	        else if("Card".equalsIgnoreCase(CardType))  
	           c=new Card();
			return c;  
	         
	    }  
	}  

